package com.wvmi.gmall.seckill.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 描述:  RabbitMQ配置类 <br>
 *
 * @author Wuminming <br>
 * 创建时间: 2023-12-06 14:55 <br>
 * <p>
 * Copyright: 2013 - 2023 www.szwcyq.com Inc. All rights reserved. <br>
 * 注意：本内容仅限于深圳市微创云启科技有限公司内部传阅，禁止外泄以及用于其他的商业目的<br>
 */
@Configuration
public class GmallRabbitMQConfig {
    public final static String ORDER_EVENT_EXCHANGE = "order-event-exchange";
    public final static String ORDER_SECKILL_ORDER_ROUTE_KEY = "order.seckill.order";
    public final static String ORDER_SECKILL_QUEUE = "order.seckill.queue";
    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
